package org.lakeside.outreach.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;

public class TopPanel extends Composite implements ClickHandler {

	private HorizontalPanel outer = new HorizontalPanel();
	private HorizontalPanel links = new HorizontalPanel();
	private Anchor signOutLink = new Anchor("Sign Out");
	private HTML logo = new HTML("<h1>Outreach Manager</h1>");
	
	public TopPanel() {
		links.add(signOutLink);
		outer.add(logo);
		outer.add(links);
		
		outer.setCellHorizontalAlignment(links, HorizontalPanel.ALIGN_RIGHT);
		outer.setCellHorizontalAlignment(logo, HorizontalPanel.ALIGN_LEFT);
		outer.setWidth("100%");
		
		initWidget(outer);
	}
	
	@Override
	public void onClick(ClickEvent event) {
		// TODO Auto-generated method stub
		
	}
	

}
